package com.loyal.loyalerp.basedata.department.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loyal.loyalerp.basedata.department.utils.jsonserializer.CompanyIdJsonSerializer;
import com.loyal.loyalerp.basedata.department.utils.jsonserializer.ParentIdJsonSerializer;

public class Department {
	private Integer id;
	// @JsonProperty("company")
	@JsonSerialize(using = CompanyIdJsonSerializer.class)
	private Integer companyId;

	private String deptCode;

	private String deptName;
	// @JsonProperty("parent")
	@JsonSerialize(using = ParentIdJsonSerializer.class)
	private Integer parentId;

	private Integer codeLevel;

	private Boolean endFlag;

	private String accCode;

	private Boolean cwzzFlag;

	private Boolean xsFlag;

	private Boolean cgFlag;

	private Boolean devFlag;

	private String principal;

	private String telephone;

	private String fax;

	private Boolean active;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode == null ? null : deptCode.trim();
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName == null ? null : deptName.trim();
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getCodeLevel() {
		return codeLevel;
	}

	public void setCodeLevel(Integer codeLevel) {
		this.codeLevel = codeLevel;
	}

	public Boolean getEndFlag() {
		return endFlag;
	}

	public void setEndFlag(Boolean endFlag) {
		this.endFlag = endFlag;
	}

	public String getAccCode() {
		return accCode;
	}

	public void setAccCode(String accCode) {
		this.accCode = accCode == null ? null : accCode.trim();
	}

	public Boolean getCwzzFlag() {
		return cwzzFlag;
	}

	public void setCwzzFlag(Boolean cwzzFlag) {
		this.cwzzFlag = cwzzFlag;
	}

	public Boolean getXsFlag() {
		return xsFlag;
	}

	public void setXsFlag(Boolean xsFlag) {
		this.xsFlag = xsFlag;
	}

	public Boolean getCgFlag() {
		return cgFlag;
	}

	public void setCgFlag(Boolean cgFlag) {
		this.cgFlag = cgFlag;
	}

	public Boolean getDevFlag() {
		return devFlag;
	}

	public void setDevFlag(Boolean devFlag) {
		this.devFlag = devFlag;
	}

	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal == null ? null : principal.trim();
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone == null ? null : telephone.trim();
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax == null ? null : fax.trim();
	}

	public Boolean getActive() {
		return active;
	}

	public void setActive(Boolean active) {
		this.active = active;
	}
}